package com.ajx.blog.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @Author: 姜东浩
 * @Date: 2022-04-22 23:52:23
 * 
 * @Description: 课程-评论关联
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "course_comment")
public class CourseComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ccid", type = IdType.AUTO)
    private Integer ccid; // 课程评论id

    @TableField(value = "blogid")
    private Integer blogid; // 博主id

    @TableField(value = "uid")
    private Integer uid; // 其他用户id

    @TableField(value = "content")
    private String content; // 评论内容

    @TableField(value = "createdate")
    private String createdate; // 创建时间 数据库timestamp类型,默认自动添加

    @TableField(value = "bid")
    private Integer bid; // 自评

    @TableField(value = "cid")
    private Integer cid; // 课程id

}
